package com.sakura.flowers.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sakura.flowers.entity.User;
import com.sakura.flowers.service.UserService;
import com.sakura.flowers.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Sakura
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-02-18 14:06:13
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Override
    public Object selectshopList() {
        LambdaQueryWrapper<User> userWrapper = new LambdaQueryWrapper<>();
        userWrapper.eq(User::getAccess, 1);
        List<User> list = this.list(userWrapper);
        return list;
    }
}




